package com.example.friend.elasticsearch;


import com.example.friend.domain.vo.QuestionESVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuestionRepository extends ElasticsearchRepository<QuestionESVO, Long> {

    List<QuestionESVO> findQuestionESVOByQuestionIdIn(List<Long> questionSet);

    Page<QuestionESVO> findQuestionByTitleOrContentAndDifficulty(String keywordTitle, String keywordContent,Integer difficulty,  Pageable pageable);
}
